<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>插槽的基础写法</title>
</head>

<body>
    <div class="app">
        <hello-vue>有一个bug产生</hello-vue>
        <hello-vue>有一个警告产生</hello-vue>
        <hello-vue></hello-vue>
    </div>

    <script src="./js/vue.js"></script>
    <script>
        Vue.component('hello-vue', {
            template: `
            <div>
          <strong>ERROR:</strong>
          <slot>我是默认显示的，一般不写东西</slot>
            </div>
            `
        })
        var xm = new Vue({
            el: '.app',
            data: {

            }
        })



    </script>

</body>

</html>